package com.design.designmode.action.chain;

/**
 * @author hxl
 * @since 2023-04-17
 */
public class Main {
    public static void main(String[] args) {
        RuleHandler fdy = new FDYHandler();
        RuleHandler yz = new YZHandler();
        RuleHandler xz = new XZHandler();
        fdy.setNext(yz);
        yz.setNext(xz);



        fdy.apply(25);

    }
}
